#include "PrimaryExpr.h"
#include "Expression.h"
#include "../../symtab/symtab.h"

PrimaryExpr::~PrimaryExpr( void )
{
	if(m_iType ==PrimaryExpr::expression)
		delete m_pExpr;
	else if(m_iType == constant)
		delete m_pConst;
}

void PrimaryExpr::codeGen()
{
	COUT
	switch (m_iType)
	{
	case  PrimaryExpr::expression:
			m_pExpr->codeGen();
			break;
	case identifier:
		std::cout<<"identifier"<<std::endl;
		break;
	case constant:
		std::cout<<"constant"<<std::endl;
		break;
	}
}